home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 319.adf / CNewsSrc / cnews.src.lzh / libcnews / nemalloc.c < prev    next >
C/C++ Source or Header  |  1989-07-03  |  261b  |  15 lines

  1. #include <stdio.h>
  2. #include <sys/types.h>
  3. #include "libc.h"
  4.  
  5. char *
  6. nemalloc(size)            /* news emalloc - calls errunlock on error */
  7. unsigned size;
  8. {
  9.     register char *result = malloc(size);
  10.  
  11.     if (result == NULL)
  12.         errunlock("out of memory", "");
  13.     return result;
  14. }
  15.